package com.stack.auto_parts.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.stack.auto_parts.entity.Orders;
import com.stack.auto_parts.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Title: OrderMapper
 * @Author WUYU_MIN
 * @Package com.stack.auto_parts.mapper
 * @Date 2024/7/8 16:44
 * @description:
 */
@Mapper
public interface OrderMapper extends BaseMapper<Orders> {
    List<Orders> listByCondition(String purchase_name,String part_name, String supplier, String uuid, String state);



    @Select("select total_price, create_time from orders")
    List<Map<Double, Date>> getOrders();

}
